<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>The Lapack class</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="lapack.constants.html">预定义常量</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="lapack.eigenvalues.html">Lapack::eigenValues</a></div>
 <div class="up"><a href="book.lapack.html">Lapack</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="class.lapack" class="reference">

 <h1 class="title">The Lapack class</h1>
 

 <div class="partintro"><p class="verinfo">(PECL lapack &gt;= 0.1.0)</p>


  <div class="section" id="lapack.intro">
   <h2 class="title">简介</h2>
   <p class="para">
     LAPACK is written in Fortran 90 and provides routines for solving systems of simultaneous linear equations, least-squares solutions of linear systems of equations, eigenvalue problems, and singular value problems. This extension wraps the LAPACKE C bindings to allow access to several processes exposed by the library. Most functions work with arrays of arrays, representing rectangular matrices in row major order - so a two by two matrix [1 2; 3 4] would be array(array(1, 2), array(3, 4)). 
   </p>
   <p class="para">All of the functions are called statically, for example $eig = Lapack::eigenvalues($a);</p>
  </div>


  <div class="section" id="lapack.synopsis">
   <h2 class="title">类摘要</h2>


   <div class="classsynopsis">
    <div class="ooclass"></div>


    <div class="classsynopsisinfo">
     <span class="ooclass">
      <strong class="classname">Lapack</strong>
     </span>
     {</div>

    
    <div class="classsynopsisinfo classsynopsisinfo_comment">/* 方法 */</div>
    <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="modifier">static</span> <span class="type">array</span><span class="methodname"><a href="lapack.eigenvalues.html" class="methodname">eigenValues</a></span>
    ( <span class="methodparam"><span class="type">array</span> <code class="parameter">$a</code></span>
   [, <span class="methodparam"><span class="type">array</span> <code class="parameter">$left</code></span>
   [, <span class="methodparam"><span class="type">array</span> <code class="parameter">$right</code></span>
  ]] )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="modifier">static</span> <span class="type">array</span><span class="methodname"><a href="lapack.identity.html" class="methodname">identity</a></span>
    ( <span class="methodparam"><span class="type">int</span> <code class="parameter">$n</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="modifier">static</span> <span class="type">array</span><span class="methodname"><a href="lapack.leastsquaresbyfactorisation.html" class="methodname">leastSquaresByFactorisation</a></span>
    ( <span class="methodparam"><span class="type">array</span> <code class="parameter">$a</code></span>
   , <span class="methodparam"><span class="type">array</span> <code class="parameter">$b</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="modifier">static</span> <span class="type">array</span><span class="methodname"><a href="lapack.leastsquaresbysvd.html" class="methodname">leastSquaresBySVD</a></span>
    ( <span class="methodparam"><span class="type">array</span> <code class="parameter">$a</code></span>
   , <span class="methodparam"><span class="type">array</span> <code class="parameter">$b</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="modifier">static</span> <span class="type">array</span><span class="methodname"><a href="lapack.pseudoinverse.html" class="methodname">pseudoInverse</a></span>
    ( <span class="methodparam"><span class="type">array</span> <code class="parameter">$a</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="modifier">static</span> <span class="type">array</span><span class="methodname"><a href="lapack.singularvalues.html" class="methodname">singularValues</a></span>
    ( <span class="methodparam"><span class="type">array</span> <code class="parameter">$a</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="modifier">static</span> <span class="type">array</span><span class="methodname"><a href="lapack.solvelinearequation.html" class="methodname">solveLinearEquation</a></span>
    ( <span class="methodparam"><span class="type">array</span> <code class="parameter">$a</code></span>
   , <span class="methodparam"><span class="type">array</span> <code class="parameter">$b</code></span>
   )</div>

   }</div>


  </div>

 </div>

 
 






 






 






 






 






 






 







<h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="lapack.eigenvalues.html">Lapack::eigenValues</a> — This function returns the eigenvalues for a given square matrix</li><li><a href="lapack.identity.html">Lapack::identity</a> — Return an identity matrix</li><li><a href="lapack.leastsquaresbyfactorisation.html">Lapack::leastSquaresByFactorisation</a> — Calculate the linear least squares solution of a matrix using QR factorisation</li><li><a href="lapack.leastsquaresbysvd.html">Lapack::leastSquaresBySVD</a> — Solve the linear least squares problem, using SVD</li><li><a href="lapack.pseudoinverse.html">Lapack::pseudoInverse</a> — Calculate the inverse of a matrix</li><li><a href="lapack.singularvalues.html">Lapack::singularValues</a> — Calculated the singular values of a matrix</li><li><a href="lapack.solvelinearequation.html">Lapack::solveLinearEquation</a> — Solve a system of linear equations</li></ul>
</div>
<hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="lapack.constants.html">预定义常量</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="lapack.eigenvalues.html">Lapack::eigenValues</a></div>
 <div class="up"><a href="book.lapack.html">Lapack</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
